
import EventManager from "../../../Common/EventManager";
import http_request from "../../../Common/http_request";
import { EventType } from "../../../GameSpecial/GameEventType";
import UserService from "../../services/userService";
import { mgrs, sers } from "../../system/OverallSystem ";
import PageBase from "./pageBase";

const { ccclass, property } = cc._decorator;

@ccclass
export default class tianjiazhuomian extends PageBase {



   
    onLoad() {

    }

    start() {
        
    }

    queding(){
        let  taht = this
        window['tt'].addShortcut({
            success() {
                cc.log("添加桌面成功");
                EventManager.emit(EventType.DirectorEvent.showCheck)
                sers().uiSrv.showMessage("添加桌面成功");
                taht.OnBtnClose()
            },
            fail(err) {
                cc.log("添加桌面失败", err.errMsg);
                sers().uiSrv.showMessage("添加桌面失败");
            },
        });
        
    }

    // update (dt) {}
}
